package com.framework.loippi.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.framework.loippi.dao.TMedicineDao;
import com.framework.loippi.entity.TMedicine;
import com.framework.loippi.service.TMedicineService;
import java.util.List;
/**
 * SERVICE - TMedicine(药品表)
 * 
 * @author wmj
 * @version 2.0
 */
@Service
public class TMedicineServiceImpl extends GenericServiceImpl<TMedicine, Long> implements TMedicineService {
	
	@Autowired
	private TMedicineDao tMedicineDao;
	
	
	@Autowired
	public void setGenericDao() {
		super.setGenericDao(tMedicineDao);
	}

	public List<TMedicine> findListByPage(Object parameter){
		return tMedicineDao.findListByPage(parameter);
	}

	public Long deletes(Object parameter){
		return tMedicineDao.deletes( parameter);
	}

	@Override
	public List<TMedicine> findByType(long typeId) {
		return tMedicineDao.findByType(typeId);
	}

	@Override
	public List<TMedicine> findAllByStatus() {
		return tMedicineDao.findAllByStatus();
	}


}
